package com.antu.first.dto;

/**主页搜索条件对象
 * Created by Administrator on 2018/3/10.
 */
public class HotelConditions {
    private String hName;//酒店名称
    private String hAddr;//地址
    private int hMinPrice;//价格 0为默认低到高，1为高到低
    private int hPopular;//人气   0为默认低到高，1为高到低
    private int hGrade;//评分     0为默认低到高，1为高到低
    private int hStar;//星级      0为默认低到高，1为高到低
    public HotelConditions(String hName, String hAddr, int hPopular, int hGrade, int hStar, int hMinPrice) {
        this.hName = hName;
        this.hAddr = hAddr;
        this.hPopular = hPopular;
        this.hGrade = hGrade;
        this.hStar = hStar;
        this.hMinPrice = hMinPrice;
    }

    public HotelConditions() {
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName;
    }

    public String gethAddr() {
        return hAddr;
    }

    public void sethAddr(String hAddr) {
        this.hAddr = hAddr;
    }

    public int gethPopular() {
        return hPopular;
    }

    public void sethPopular(int hPopular) {
        this.hPopular = hPopular;
    }

    public int gethGrade() {
        return hGrade;
    }

    public void sethGrade(int hGrade) {
        this.hGrade = hGrade;
    }

    public int gethStar() {
        return hStar;
    }

    public void sethStar(int hStar) {
        this.hStar = hStar;
    }

    public int gethMinPrice() {
        return hMinPrice;
    }

    public void sethMinPrice(int hMinPrice) {
        this.hMinPrice = hMinPrice;
    }

    @Override
    public String toString() {
        return "HotelConditions{" +
                "hName='" + hName + '\'' +
                ", hAddr='" + hAddr + '\'' +
                ", hMinPrice=" + hMinPrice +
                ", hPopular=" + hPopular +
                ", hGrade=" + hGrade +
                ", hStar=" + hStar +
                '}';
    }
}
